package com.lengxf.design;

/**
 * 充当抽象工厂角色
 * By Lengxf
 */
public interface LoggerFactory {

    //抽象工厂方法
    Logger createLogger();

    default void writeLog() {
        createLogger().writeLog();
    }

}

